import {request} from "../../request";

export function getCargojcById(id){
    return request({
        url:`/lswms/cargojc/${id}`,
        method:'get'
    })
}


export function getCargojcPage(data){
    return request({
        url:'/lswms/cargojc/page',
        method:'put',
        data:data
    })
}

export function putCargojc(data){
    return request({
        url:'/lswms/cargojc',
        method:'put',
        data:data
    })
}
export function postCargojc(data){
    return request({
        url:'/lswms/cargojc',
        method:'post',
        data:data
    })
}

export function deleteCargojc(data){
    return request({
        url:`/lswms/cargojc`,
        method:'delete',
        data:data
    })
}
export function exportCargojc(data){
    return request({
        url:`/lswms/cargojc/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
export function cargoLocation(data) {
    return request({
        url:'/lswms/cargojc/cargoLocation',
        method:'get',
        data: data
    })
}
